package exception;

import org.w3c.dom.Node;

import javax.imageio.IIOException;
import java.awt.print.Book;
import java.io.IOException;

/**
 * @Author:Cjj
 * @Date:2025/6/18
 */
public class ResourceDemo implements AutoCloseable{

    public void test() throws IOException{
        throw new IIOException("文件太大了");
    }
    @Override
    public void close() throws Exception {
        System.out.println("ResourceDemo closed");

    }

}
